package com.vf.admin.client.service.impl;

import cn.hutool.core.util.ObjectUtil;
import com.vf.admin.client.dao.AppGzUserDao;
import com.vf.admin.client.service.AppGzUserService;
import com.vf.admin.miaodong.entity.AppGzUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/9/6 11:39
 */
@Service
public class AppGzUserServiceImpl implements AppGzUserService {

    @Resource
    private AppGzUserDao appGzUserDao;


    @Override
    public void save(AppGzUser appGzUser) {
        appGzUserDao.save(appGzUser);
    }

    @Override
    public Boolean isGouMai(Integer userIdToken, Integer userId) {
        AppGzUser gouMai = appGzUserDao.isGouMai(userIdToken, userId);
        if (ObjectUtil.isNotEmpty(gouMai)){
            return true;
        }
        return false;
    }
}
